package file.Practice;

import java.io.File;

public class delete {
    public static void main(String[] args){
        for (int i = 0; i <=100; i++) {
            File file = new File("./src//file//txtAll//text"+i+".txt");
            if (file.exists()){
                System.out.println(1);
                file.delete();
            }else {
                System.out.println(2);
            }
        }
    }
}
